package day0922;

import java.util.Collection;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Set;

public class H2 {

    public static void main(String[] args) {
        Hashtable t=new Hashtable();
        t.put(1001,"刘智强");
        t.put(1002,"李嘉欣");
        Collection<String> c =t.values();
        Iterator<String> ite=c.iterator();//获取迭代器对象//A.
        while(ite.hasNext()){//B.
            String s=ite.next();//C.
            System.out.println(s);
        }

    }




}
